if (sprite(the clickOn).loc = the mouseLoc) and (the clickOn <> spriteNum) then
if (getlist(the clickOn).rankvalue = (foundation[makesymbol(spriteNum)].getlastcard().rankvalue + 1)) and (getlist(the clickOn).suit = foundation[makesymbol(spriteNum)].getlastcard().suit) then